<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($col_name); ?>管理</title>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/inc.js"></script>

<link href="__PUBLIC__/Css/green/g_main.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/Css/green/list.css" type="text/css" rel="stylesheet" />
<link href='__PUBLIC__/Css/green/pagination.css' type='text/css' rel='stylesheet' media='all' />
</head>

<body>
<div class="list">
<?php if($is_search == 1): ?><div class="title-div">
<ul>
<li class="title">搜索</li>
<li class="search">
<table border="0" cellspacing="0" cellpadding="0" class="table_class1">
<form id="form1" name="form1" method="post" action="__URL__/index">
  <tr style="height:30px; line-height:30px;">
    <td><?php if(!empty($keyword_tip)): ?><input type="text" name="keyword" id="keyword"  title="<?php echo ($keyword_tip); ?>" class="input_text" style="border: 1px solid #CCC;"/>
	<?php else: ?>
    <input type="text" name="keyword" id="keyword" class="input_text" style="border: 1px solid #CCC;"/><?php endif; ?></td>
    <?php foreach($dropdown_field_arr as $v){
	   echo "<td align='left'><table border='0' cellpadding='0' cellspacing='0'>";
	   showformitembyfield($v,$table);
	   echo "</table></td>";
	} ?>
  <td><input type="submit" name="btn1" id="btn1" value="提  交"  onclick="submit();this.disabled=true" class="button"/><input type="hidden" id="ljw_search" name="ljw_search" value="1"/></td>
  </tr>
 </form>
</table>
</li><li class="back"><a href="javascript:history.go(-1);">[ 后退 ]</a></li></ul></div><?php endif; ?>
<div class="listtable">


<table cellpadding="3" cellspacing="1">
<tr>
<th>选择</th>
<?php if(is_array($field_comment_arr)): $i = 0; $__LIST__ = $field_comment_arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><th><?php echo ($vo); ?></th><?php endforeach; endif; else: echo "" ;endif; ?>
<?php if($is_sequence  == true): ?><th>顺序</th><?php endif; ?>
<th>操作</th>
</tr>
<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
<td><input type="checkbox" name="ljw_select"  id="ljw_select_<?php echo ($i); ?>" value="<?php echo ($vo[$pk]); ?>"  /></td>
<?php if(is_array($field_name_arr)): $i = 0; $__LIST__ = $field_name_arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): ++$i;$mod = ($i % 2 )?><td><?php echo ($vo[$v]); ?></td><?php endforeach; endif; else: echo "" ;endif; ?>
<?php if($is_sequence  == true): ?><td align="center"><?php if($vo["sequence"] < $maxseq): ?><a href="__URL__/up/<?php echo ($pk); ?>/<?php echo ($vo[$pk]); ?>/<?php echo ($divpage_param); ?>" title="向上"><img src="__PUBLIC__/images/admin/green/icon/cyan/up.gif" /></a><?php endif; ?><?php if($vo["sequence"] > $minseq): ?><a href="__URL__/down/<?php echo ($pk); ?>/<?php echo ($vo[$pk]); ?>/<?php echo ($divpage_param); ?>" title="向下"><img src="__PUBLIC__/images/admin/green/icon/cyan/down.gif" /></a><?php endif; ?></td><?php endif; ?>
   <td><a href="__URL__/edit/<?php echo ($pk); ?>/<?php echo ($vo[$pk]); ?>/<?php echo ($divpage_param); ?>" title="编辑"><img src="__PUBLIC__/images/admin/green/icon/cyan/edit.gif" /></a><a href="__URL__/delete/<?php echo ($pk); ?>/<?php echo ($vo[$pk]); ?>/<?php echo ($divpage_param); ?>" onclick="if(!confirm('你确认要删除吗?')){return false;}" title="删除"><img src="__PUBLIC__/images/admin/green/icon/cyan/trash.gif" /></a>
   <a href="__URL__/copydata/<?php echo ($pk); ?>/<?php echo ($vo[$pk]); ?>" title="复制"><img src="__PUBLIC__/images/admin/green/icon/cyan/copy.gif" /></a><?php if(!empty($preview_url)): ?><a href="<?php echo ($preview_url); ?><?php echo ($vo[$pk]); ?>" target="_blank"><img src="__PUBLIC__/images/admin/green/icon/cyan/view.gif" title="预览"/></a><?php endif; ?></td>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>  
</table>

<table cellpadding="3" cellspacing="1">
<tr><td ><input type="checkbox" name="ljw_sall" id="ljw_sall" onclick="sall('ljw_sall','ljw_select')" />全选/全不选
<select name="sys_action" id="sys_action"  onchange="if(this.value==0)return  false;       checkselectdelitem('ljw_select','__URL__/'+this.value+'/<?php echo ($divpage_param); ?>');">
<option value="0">请选择...</option>
<option value="delall">删除所选</option>
<?php if(is_array($sys_action)): $i = 0; $__LIST__ = $sys_action;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vo["action_function"]); ?>"><?php echo ($vo["action_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</td></tr>
</table>

<table cellpadding="3" cellspacing="1">
<tr><td colspan="3"><div align="right"><?php echo ($page); ?> 每页 <input name="sys_pagesize" id="sys_pagesize" value="<?php echo ($sys_pagesize); ?>" class="input_text_30" style=" border: 1px solid #EFEFEF;"/> 条 <input type="button" onclick="location.href='__URL__/index/<?php echo ($divpage_param); ?>'+'/sys_pagesize/'+document.getElementById('sys_pagesize').value;" value="确定" class="button" style="border:1px solid ; border-color: #EFEFEF #CCC　#CCC #EFEFEF;" /></div></td></tr>
</table>

</div>
</div>


</body>
</html>